import request from '@/utils/request'

// 查询消防员列表
export function listFirefighter(query) {
  return request({
    url: '/help/firefighter/list',
    method: 'get',
    params: query
  })
}

// 查询消防员详细
export function getFirefighter(uId) {
  return request({
    url: '/help/firefighter/' + uId,
    method: 'get'
  })
}

// 新增消防员
export function addFirefighter(data) {
  return request({
    url: '/help/firefighter',
    method: 'post',
    data: data
  })
}

// 修改消防员
export function updateFirefighter(data) {
  return request({
    url: '/help/firefighter',
    method: 'put',
    data: data
  })
}

// 删除消防员
export function delFirefighter(uId) {
  return request({
    url: '/help/firefighter/' + uId,
    method: 'delete'
  })
}
